package Eyjafjalla.card.dolly;

import Eyjafjalla.action.DiscardAndPlayAction;
import Eyjafjalla.action.RandomBuffAction;
import Eyjafjalla.card.AbstractEyjafjallaCard;
import Eyjafjalla.modcore.ColorEnum;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;

public class LJFXZ_Eyjafjalla extends AbstractEyjafjallaCard {
    public static final String ID = "LJFXZ_Eyjafjalla";
    private static final CardStrings cardStrings;

    public LJFXZ_Eyjafjalla(){
        super(ID, cardStrings.NAME,1,cardStrings.DESCRIPTION,CardType.SKILL, ColorEnum.Eyjafjalla_Dolly_COLOR,CardRarity.UNCOMMON,CardTarget.NONE);
        setDolly();
        setFireDescription(cardStrings.EXTENDED_DESCRIPTION[0]);
    }

    @Override
    public AbstractCard makeCopy() {
        return new LJFXZ_Eyjafjalla();
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        addToBot(new DiscardAndPlayAction(true,isFire()));
    }

    @Override
    public void upgrade() {
        if(!this.upgraded){
            upgradeName();
            upgradeBaseCost(0);
        }
    }

    static {
        cardStrings = CardCrawlGame.languagePack.getCardStrings(ID);
    }
}


